<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 快递列表</strong></div>


    <div class="padding border-bottom">
        <ul class="search" style="padding-left:10px;">
            <!--<li>
                <form method="post" action="#" id="listform">
                    <input type="text" placeholder="请输入昵称" name="where" class="input" style="width:100px; line-height:17px;display:inline-block" />
                    <button  class="button border-main icon-search" type="submit" > 搜索</button>
                </form>
            </li>-->
            <li>
                <a  href="express_insert" class="button border-main" type="submit" >添加快递</a>
            </li>
            <li>
                <a  href="chinese" class="button border-main" type="submit" >中文导出</a>
            </li>
            <li>
                <a  href="english" class="button border-main" type="submit" >English export</a>
            </li>
            <!--<li>
                <a  href="#" class="button border-main" type="submit" >打印</a>
            </li>-->

        </ul>
    </div>


    <table class="table table-hover text-center">
        <tr>
            <th>ID</th>
            <th>发货姓名</th>
            <th>发货手机号</th>
            <th>快递单号</th>
            <th>运费金额</th>
            <th>重量</th>
            <th>数量</th>
            <th>费用总计</th>
            <th>快递物品</th>
            <th>收件人姓名</th>
            <th>收件人手机号</th>
            <th>签收状态</th>
            <th>操作员</th>
            <th>最近一次更新时间</th>
            <th>操作</th>
        </tr>
        {volist name='list' id='vo'}
     {if condition="$vo.operation == $Think.session.user.name"}
        <tr>
            <td>{$vo.id}</td>

            <td>{$vo.hairname}</td>
            <td>{$vo.hairphone}</td>

            <td>{$vo.oddnumbers}</td>

            {if condition="$vo.pay == 1"}
            <td>现付</td>
            {/if}
            {if condition="$vo.pay == 2"}
            <td>寄付</td>
            {/if}
            <td>{$vo.weight}KG</td>
            <td>{$vo.number}</td>


            <td>{$vo.totalpay}</td>
            <td>{$vo.article}</td>
            <td>{$vo.collectname}</td>
            <td>{$vo.collectphone}</td>

            {if condition="$vo.sign == 0" }
            <td>未签收</td>
            {/if}
            {if condition="$vo.sign == 1" }
            <td>已签收</td>
            {/if}
            <td>{$vo.operation}</td>
            <td>{$vo.time|date='Y-m-d H:i:s',###}</td>
            <td style="width:16%">
                <div class="button-group">

                    <a type="button" class="button border-red" onclick="express_det({$vo.id})">快递详情</a>
                    <a class="button border-red" href="#" onclick="return isdel({$vo.id});"    ><span class="icon-trash-o"></span> 删除</a>
                    <a type="button" class="button border-red" onclick="printing({$vo.id})">打印快递</a>
                </div>
            </td>
        </tr>
        {/if}
        {/volist}
        {notempty name="page"}
        <tr>
            <td colspan="10"><div class="pagelist">{$page}</div></td>
        </tr>
        {/notempty}
    </table>
</div>
<script>
    function isdel(a){
        if (confirm('确定要删除吗？删除后无法恢复！')){
            window.location.href="expressdelete?id="+a;
            return true;
        }else{
            return false;
        }

    }

    function express_det(a) {
        window.location.href="express_det?id="+a;
    }
function printing(a) {
    window.location.href="../../../admin/Dayin/index?id="+a;
}
</script>
</body></html>